package com.liu.AllAnnotation;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan("com.liu.AllAnnotation")//相当于 context:component-scan
@EnableAspectJAutoProxy//相当于aspectj-autoproxy
public class AllAnnotationConfig {

   /* 可以使用@Component代替
   @Bean
    public PersonImpl PersonImpl(){
        return new PersonImpl();
    }*/
    @Bean
    public DiyCutPointCutAnnotation DiyCutPointCutAnnotation(){
        return new DiyCutPointCutAnnotation();
    }
}
